package com.example.aircraft.bullet;

public class BulletFactory {
    public static AbstractBullet dispatchBullet(String Type, int locationX, int locationY, int speedX, int speedY, int power){
        if(Type.equals("Hero")){
            return new HeroBullet(locationX, locationY, speedX,-(speedY),power);
        }else if(Type.equals("Enemy")){
            return new EnemyBullet(locationX, locationY, speedX,speedY,power);
        }else {
            return null;
        }
    }
}
